PaymentPlugins\WooCommerce\PPCP\PaymentResult A

Total Complexity 53
Dependencies 7
Dependents 9
Total lines 266
Lines of code 150
Logical lines of code 63
Comment lines 62
Methods 28
Properties 8

Methods 28

Method Rating Maintainability Complexity Lines of code
determine_success()
A
53 13 21
needs_approval()
S
63 7 10
initialize()
S
57 4 18
get_failure_response()
S
59 2 15
get_approval_url()
S
66 2 8
already_authorized()
S
78 2 3
already_captured()
S
78 2 3
__construct()
S
73 1 5
get_environment()
S
82 1 3
set_environment()
S
81 1 3
set_paypal_order_id()
S
81 1 3
is_production()
S
80 1 3
get_success_response()
S
70 1 6
get_approval_response()
S
68 1 7
get_paypal_order()
S
82 1 3
set_error_message()
S
81 1 3
get_error_message()
S
82 1 3
get_capture_status()
S
81 1 3
get_authorization_status()
S
81 1 3
get_authorization_id()
S
81 1 3
get_authorization()
S
80 1 3
get_capture()
S
80 1 3
has_payments()
S
79 1 3
get_capture_id()
S
80 1 3
is_authorized()
S
80 1 3
is_captured()
S
80 1 3
success()
S
82 1 3
is_wp_error()
S
80 1 3